package com.zc.study.thread.多线程第二章节.thread2_1_5;

public class ThreadB extends Thread {
    private Communion c;

    public ThreadB(Communion zz) {
        c = zz;
    }
    @Override
    public void run(){
        c.methodB();
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
